package com.ruoyi.team.trash.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 成果移除箱对象 achievement_trash
 *
 * @author ruoyi
 * @date 2025-01-24
 */
@Data
public class AchievementTrash extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增 */
    private Long id;

    /** 上传者id */
    @Excel(name = "上传者id")
    private Long userid;

    /** 成果类型 */
    @Excel(name = "成果类型")
    private String achievementType;

    /** 成果对应id */
    @Excel(name = "成果对应id")
    private Long achievementId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 移除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }

    public Long getUserid()
    {
        return userid;
    }
    public void setAchievementType(String achievementType)
    {
        this.achievementType = achievementType;
    }

    public String getAchievementType()
    {
        return achievementType;
    }
    public void setAchievementId(Long achievementId)
    {
        this.achievementId = achievementId;
    }

    public Long getAchievementId()
    {
        return achievementId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDeletedAt(Date deletedAt)
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt()
    {
        return deletedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("achievementType", getAchievementType())
            .append("achievementId", getAchievementId())
            .append("title", getTitle())
            .append("deletedAt", getDeletedAt())
            .toString();
    }
}
